// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'RepairTaskRouteId',
        footer: "Foots",
        cnName: '维修工单任务路线',
        name: 'RepairTaskRoute',
        newTabEdit: false,
        url: "/RepairTaskRoute/",
        sortName: "RepairTaskRouteId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"TaskSequence":"","TaskName":"","TaskStandardType":"","TaskStandardValue":"","StandardValueUnit":"","ActualValue":"","ActualExecutor":"","DefaultExecutor":"","StandardWorkPeriod":"","WorkPeriodUnit":"","ActualWorkPeriod":""};
    const editFormOptions = [[{"title":"任务顺序","required":true,"field":"TaskSequence","type":"text"},
                               {"title":"任务名称","field":"TaskName","type":"text"},
                               {"dataKey":"任务标准类型","data":[],"title":"任务标准类型","field":"TaskStandardType","type":"select"},
                               {"title":"任务标准值","field":"TaskStandardValue","type":"text"},
                               {"title":"标准值单位","field":"StandardValueUnit","disabled":true,"type":"text"},
                               {"title":"实际值","required":true,"field":"ActualValue","type":"text"},
                               {"dataKey":"职员","data":[],"title":"实际执行人","required":true,"field":"ActualExecutor","type":"select"},
                               {"dataKey":"职员","data":[],"title":"默认执行人","field":"DefaultExecutor","type":"select"},
                               {"title":"标准工期","field":"StandardWorkPeriod","type":"decimal"},
                               {"dataKey":"工期单位","data":[],"title":"工期单位","field":"WorkPeriodUnit","type":"select"},
                               {"title":"实际工期","required":true,"field":"ActualWorkPeriod","type":"decimal"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'RepairTaskRouteId',title:'维修工单任务路线标识',type:'int',width:80,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'RepairWorkOrderId',title:'维修工单标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'TaskSequence',title:'任务顺序',type:'string',width:110,require:true,align:'left'},
                       {field:'TaskName',title:'任务名称',type:'string',width:110,align:'left'},
                       {field:'TaskStandardType',title:'任务标准类型',type:'int',bind:{ key:'任务标准类型',data:[]},width:110,align:'left'},
                       {field:'TaskStandardValue',title:'任务标准值',type:'string',width:110,align:'left'},
                       {field:'StandardValueUnit',title:'标准值单位',type:'string',width:110,readonly:true,align:'left'},
                       {field:'ActualValue',title:'实际值',type:'string',width:120,require:true,align:'left'},
                       {field:'ActualExecutor',title:'实际执行人',type:'int',bind:{ key:'职员',data:[]},width:80,require:true,align:'left'},
                       {field:'DefaultExecutor',title:'默认执行人',type:'int',bind:{ key:'职员',data:[]},width:110,align:'left'},
                       {field:'StandardWorkPeriod',title:'标准工期',type:'decimal',width:110,align:'left'},
                       {field:'WorkPeriodUnit',title:'工期单位',type:'int',bind:{ key:'工期单位',data:[]},width:110,align:'left'},
                       {field:'ActualWorkPeriod',title:'实际工期',type:'decimal',width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}